<template>
  <div class="skeleton-container">
    <!-- 示例：模拟文章内容的骨架屏 -->
    <div class="skeleton-item"></div>
    <div class="skeleton-item"></div>
    <div class="skeleton-item" style="width: 80%"></div>
    <!-- 更多骨架块 -->
  </div>
</template>

<script setup lang="ts"></script>

<style lang="less" scoped>
.skeleton-container {
  padding: 20px;
}

.skeleton-item {
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  margin-bottom: 15px;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
</style>
